<template>
	<my-ref
		url="/log/mobile-code-log/list"
		v-model="value"
		@loaded="procData"
		:multi="multi"
		:page-size="10"
		ref="list"
		name="mobileCodeLog"
		:store="true"
		v-bind="[$attrs]"
		@input="v=>$emit('input',v)"
		:readOnly="readOnly"
	>
		<el-table-column type="index" align="center" width="50"></el-table-column>
		<!--<template v-slot="scope"></template>-->
		<el-table-column align="center" label="module" prop="module_res"></el-table-column>
		<el-table-column align="center" label="mobile" prop="mobile"></el-table-column>
		<el-table-column align="center" label="templateCode" prop="templateCode"></el-table-column>
		<el-table-column align="center" label="param" prop="param"></el-table-column>
		<el-table-column align="center" label="bizId" prop="bizId"></el-table-column>
		<el-table-column align="center" label="result" prop="result"></el-table-column>
		<el-table-column align="center" label="errorMessage" prop="errorMessage"></el-table-column>
		<el-table-column align="center" label="sentAt" prop="sentAt"></el-table-column>
		<el-table-column align="center" label="arrivedAt" prop="arrivedAt"></el-table-column>
		<template #query="scope">
		</template>
		<template #button>
			<el-button>选择mobileCodeLog</el-button>
		</template>
	</my-ref>
</template>
<script>
/**
 * Created by CodeGenerator at 2022-02-22 15:33:17
 */
export default {
	name: "ref-mobile-code-log",
	props: {
		readOnly: {type: Boolean, default: false},
		multi: {type: Boolean, default: false}, //多选
		value: {
			type: [Object, Array], default: function () {
				return []
			}
		}
	},
	data() {
		return {
			MobileCodeModuleEnum: jv.enum.MobileCodeModuleEnum.getData(),
		}
	},
	methods: {
		procData(res, op) {
			var json = res.data.data;
			json.forEach(it => {
				//如果是组合实体，设置 it.id=...
				jv.enum.MobileCodeModuleEnum.fillRes(it, "module");
			});
		}
	}
}
</script>